package aop;

import java.lang.reflect.Method;

/**
 * 被切入点对像
 *
 * @author Zee
 * @version 1.0
 * @date 2021/10/14
 */
public class JoinPoint {
    private Object proxy;
    private Method method;
    private Object[] arg;

    public JoinPoint() {

    }

    public JoinPoint(Object proxy, Method method, Object[] arg) {
        this.proxy = proxy;
        this.method = method;
        this.arg = arg;
    }

    public Object getProxy() {
        return proxy;
    }

    public void setProxy(Object proxy) {
        this.proxy = proxy;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public Object[] getArg() {
        return arg;
    }

    public void setArg(Object[] arg) {
        this.arg = arg;
    }
}
